package com.ruoyi.group.controller;



import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.group.domain.dto.RepairOrderDto;
import com.ruoyi.group.service.FindOrderServive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static com.ruoyi.common.utils.PageUtils.startPage;

/**
 * @Author:黄志超
 * @Todo:查看全部工单
 * @DateTime:2022/3/8 18:48
 * @Component:蜗牛
 **/

@RestController("/find")
public class ExamineOrderController extends BaseController {
    @Autowired
    FindOrderServive findOrderServive;
    @PostMapping("/order/list")
    public TableDataInfo tableDataInfo(){
        startPage();
        List<RepairOrderDto> list = findOrderServive.findOrderList();
        return getDataTable(list);
    }
}
